<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>

<head>
<base href="${pageContext.request.contextPath}/" />
<title>襄阳蓝芯智能化办公系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="view/bootstrap-3.3.5/css/bootstrap.css"/>
<style>
/*定义类名为.thead-blue的样式*/
.thead-blue {
	color: #fff;
	font-weight: bold;
	background-color: #337ab7;
}
</style>
</head>
<body>

	<div class="panel panel-primary">
		<table class="table table-bordered table-hover">
			<thead>
				<tr class="thead-blue">
					<td colspan="6">部门详情</td>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td class="col-md-1"><label>部门名称</label></td>
					<td class="col-md-3">${dept.deptName}</td>
					<td class="col-md-1"><label>上级部门</label></td>
					<td class="col-md-3">${dept.dept.deptName }</td>
					<td class="col-md-1"><label>部门经理</label></td>
					<td class="col-md-3">${dept.emp.empName}</td>
				</tr>
				
				<tr>
					<td><label>部门电话</label></td>
					<td>${dept.phone}</td>
					<td><label>部门传真</label></td>
					<td>${dept.fax}</td>
					<td><label>部门邮箱</label></td>
					<td>${dept.email}</td>
				</tr>
				
				<tr>
					<td><label>部门邮编</label></td>
					<td>${dept.zipcode}</td>
					<td><label>状态</label></td>
					<td>${dept.status=="q"?"可用":"不可用"}</td>
					<td><label>部门地址</label></td>
					<td>${dept.address}</td>
				</tr>
				<tr>
					<td><label>部门介绍</label></td>
					<td colspan="5">${dept.description}</td>
				</tr>
				<tr>
					<td><label>部门职位</label></td>
					<td colspan="5">
						<c:forEach items="${dept.roles }" var="job">
							<span class="label label-success">${job.name }</span>&nbsp;
						</c:forEach>
					</td>
				</tr>
				<tr>
					<td colspan="6" align="center">
						<a type="button" href="javascript:history.back()" class="btn btn-info">返回</a>
					</td>
				</tr>
			</tbody>
		</table>
	</div>

</body>
</html>